Skip to content

Conversation

pshabunia
Copy link

Queue is designed for synchronous communication between threads, e.g. get() is a blocking call.
https://docs.python.org/3/library/queue.html#module-queue

The most appropriate class for both stack and queue would be deque
https://docs.python.org/3/library/collections.html#collections.deque

Queue is designed for synchronous communication between threads, e.g. `get()` is a blocking call. The most appropriate class in Python for both stack and queue would be `deque`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant